{include h}
<div class="container">
  <div id="main">
    {hook t_top_left_box}
    {hook t_forum_thread_top_left_box}
    <div class="wrap-box t-list">
      <div class="head with-btns">
        <a href="{php echo WWW.URL('forum',$fid.EXP.'new');}" class="btn bg-transparent border js-popover">最新主题</a>
        <a href="{php echo WWW.URL('forum',$fid.EXP.'btime');}" class="btn bg-transparent border js-popover">最新回复</a>

        <a href="{php echo WWW.URL('post','');}" class="btn bg-primary large pull-right">发表新主题</a>
      </div>
      <div class="list">
      {hook t_forum_thread_thread_list_top}
      {foreach $top_list as $v}
        <div class="item">
          <a href="{php echo WWW.URL('my',$v['user']);}" target="_blank">
          <img src="{#WWW}{$v.avatar.b}" width="50" height="50" class="circle pull-left js-tooltip">
          </a>
          <div class="middle text">
            <h4 class="title">
            <a style="{if $v['top']==2}font-weight: bold;color: #09C;{/if}" href="{php echo WWW.URL('thread','',EXP.$v['id']);}" >{if $v['top']==2}<span class="qzd">全站置顶</span>{elseif $v['top']==1}<span class="fzd">本版置顶</span>{/if}{$v.title}</a>
            </h4>
            <div class="meta">
              <a href="{php echo WWW.URL('my',$v['user']);}" class="author" target="_blank">{$v.user}</a>&nbsp;&nbsp;·&nbsp;&nbsp;发表于 {php echo humandate($v['atime']);}&nbsp;&nbsp;·&nbsp;&nbsp;{if isset($v['buser'])}{$v.buser} 最后回复 {php echo humandate($v['btime']);}{/if}
            </div>
          </div>
          {if $v['posts']}
          <a href="{php echo WWW.URL('thread','',EXP.$v['id']);}" class="comment" ><span class="badge {if ($v['btime']+1800) > NOW_TIME}badge-success{/if}">{$v.posts}</span></a>
          {/if}
        </div>
        {/foreach}
      {foreach $top_f_data as $v}
        <div class="item">
          <a href="{php echo WWW.URL('my',$v['user']);}" target="_blank">
          <img src="{#WWW}{$v.avatar.b}" width="50" height="50" class="circle pull-left js-tooltip">
          </a>
          <div class="middle text">
            <h4 class="title">
            <a  style="{if $v['top']==1}font-weight: bold;color: #CE792D;{/if}" href="{php echo WWW.URL('thread','',EXP.$v['id']);}" >{if $v['top']==2}<span class="qzd">全站置顶</span>{elseif $v['top']==1}<span class="fzd">本版置顶</span>{/if}{$v.title}</a>
            </h4>
            <div class="meta">
              <a href="{php echo WWW.URL('my',$v['user']);}" class="author" target="_blank">{$v.user}</a>&nbsp;&nbsp;·&nbsp;&nbsp;发表于 {php echo humandate($v['atime']);}&nbsp;&nbsp;·&nbsp;&nbsp;{if isset($v['buser'])}{$v.buser} 最后回复 {php echo humandate($v['btime']);}{/if}
            </div>
          </div>
          {if $v['posts']}
          <a href="{php echo WWW.URL('thread','',EXP.$v['id']);}" class="comment" ><span class="badge {if ($v['btime']+1800) > NOW_TIME}badge-success{/if}">{$v.posts}</span></a>
          {/if}
        </div>
        {/foreach}
        {foreach $data as $v}
        <div class="item">
          <a href="{php echo WWW.URL('my',$v['user']);}" target="_blank">
          <img src="{#WWW}{$v.avatar.b}" width="50" height="50" class="circle pull-left js-tooltip">
          </a>
          <div class="middle text">
            <h4 class="title">
            <a href="{php echo WWW.URL('thread','',EXP.$v['id']);}" >{$v.title}</a>
            </h4>
            <div class="meta">
              <a href="{php echo WWW.URL('my',$v['user']);}" class="author" target="_blank">{$v.user}</a>&nbsp;&nbsp;·&nbsp;&nbsp;发表于 {php echo humandate($v['atime']);}&nbsp;&nbsp;·&nbsp;&nbsp;{if isset($v['buser'])}{$v.buser} 最后回复 {php echo humandate($v['btime']);}{/if}
            </div>
          </div>
          {if $v['posts']}
          <a href="{php echo WWW.URL('thread','',EXP.$v['id']);}" class="comment" ><span class="badge {if ($v['btime']+1800) > NOW_TIME}badge-success{/if}">{$v.posts}</span></a>
          {/if}
        </div>
        {/foreach}
        {hook t_forum_thread_thread_list_bottom}

      </div>
    </div>
    <div class="h-20"></div>
    <div class="wrap-box">
    {hook t_forum_thread_page_top}
      <a href="{if $pageid==1}javascript:void(0);{else}{php echo WWW.URL('forum',$fid.EXP.$type,EXP.($pageid-1));}{/if}"  class="btn bg-primary {if $pageid==1}disabled{/if}" >上一页</a>
      <a  href="{if $pageid==$page_count}javascript:void(0);{else}{php echo WWW.URL('forum',$fid.EXP.$type,EXP.($pageid+1));}{/if}" class="btn bg-primary large pull-right {if $pageid==$page_count}disabled{/if}" >下一页</a>
      {hook t_forum_thread_page_bottom}
    </div>
  </div>
  {include r_m}
</div>

{include f}
